/*
 * Copyright 2022-2023 the original author(https://github.com/wj596)
 * 
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * </p>
 */
package org.jsets.fastboot.flowable.service;

import java.util.List;
import org.jsets.fastboot.flowable.model.dto.FlowUser;
import org.jsets.fastboot.flowable.model.dto.FlowUserGroup;
import org.jsets.fastboot.flowable.model.dto.FlowUserGroupQuery;
import org.jsets.fastboot.flowable.model.dto.FlowUserQuery;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

/**
 * 流程权限服务
 * @author wangjie (https://github.com/wj596)
 * @date 2021.06.25 11:23
 */
public interface IFlowIdentityService {
	
	boolean saveUser(FlowUser flowUser);
	Page<FlowUser> selectFlowUserPage(FlowUserQuery criteria);
	boolean deleteUser(String account);
	boolean saveGroup(FlowUserGroup flowUserGroup);
	boolean deleteGroup(String groupId);
	FlowUserGroup getGroupById(String groupId);
	List<FlowUserGroup> selectFlowGroupList(FlowUserGroupQuery criteria);
	Page<FlowUserGroup> selectFlowGroupPage(FlowUserGroupQuery criteria);
	List<FlowUser> selectUserByGroup(String groupId);
	Long getUserCountByGroup(String groupId);
}
